<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">
<f:view locale="#{systemBean.locale}">
	<h:head>
		<link rel="stylesheet" type="text/css" href="${initParam.styles}style.css" />		
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<title><ui:insert name="titulo" /></title>	
	</h:head>
	<h:body>
	<body>
		<div id="header">
			<p:growl id="growl" showDetail="false" sticky="false" />
			<div id="header-logo">
				<a href="index.jsf">
			        <img src="${initParam.systemimages}logo.png" alt="Logo jPress" title="Logo jPress" />
		    	</a>
			</div>
		    <div id="header-menu">
				<ul>
		        	<li class="home home1"><a href="index.jsf"><br />#{locale.menuEstaticoInicio}</a></li>
		            <li class="home home2"><a href="quemsomos.jsf"><br />#{locale.menuEstaticoQuemSomos}</a></li>
		            <li class="home home3"><a href="facaparte.jsf"><br />#{locale.menuEstaticoFacaParte}</a></li>
		            <li class="home home4"><a href="tutorial.jsf"><br />#{locale.menuEstaticoTutorial}</a></li>
					<li class="home home5"><a href="contato.jsf"><br />#{locale.menuEstaticoContato}</a></li> 
				</ul>
			</div>
			<h:panelGroup rendered="#{sessionBean.usuario.id ne 0}">
				<div id="header-info">
                	<h:form>
	                	#{sessionBean.usuario.nome} (#{sessionBean.usuario.email})&nbsp;|
	                	<a href="main.jsf">#{locale.PanelLogadoTopPainel}</a>&nbsp;|&nbsp;
	                	<a href="profile.jsf">#{locale.PanelLogadoTopPerfil}</a>&nbsp;|&nbsp;
	                	<h:commandButton style="background-color: #FFF; border: none; color: #000; padding: 2px;" value="#{locale.PanelLogadoTopSair}" action="#{sessionBean.efetuarLogoff}" />
					</h:form>
            	</div>
			</h:panelGroup>
			  	
		</div>
		<div class="linha"></div>
		<div id="body-system">
			<ui:insert name="body">
				Corpo não definido
			</ui:insert>
			<div class="clear"></div>
		</div>
		<div class="linha-footer"></div>  
		<div id="footer">
            <div id="footer-top">
        		<a href="privacidade.jsf">#{locale.menuEstaticoPrivacidade}</a> | <a href="legal.jsf">#{locale.menuEstaticoLegal}</a>        		 
        	</div>
        	<div id="footer-bottom" style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; width: 1000px;">
        		<p style="float: right;">Copyright &copy; 2011 jPress.com - #{locale.copyright}.</p>
        		<p style="float: left;">
	        		<h:form>
		        		<h:commandLink action="#{systemBean.alteraLocale}">
		        			<f:setPropertyActionListener target="#{systemBean.locale}" value="pt_BR" />
		        			<h:graphicImage value="${initParam.systemimages}brazilFlag.png" />
		        		</h:commandLink>&nbsp;
		        		<h:commandLink action="#{systemBean.alteraLocale}">
		        			<f:setPropertyActionListener target="#{systemBean.locale}" value="en" />
		        			<h:graphicImage value="${initParam.systemimages}usaFlag.png" />
		        		</h:commandLink>
	        		</h:form>          		
        		</p>
        		<div class="clear"></div>
        	</div>
        </div>		
	</body>
	</h:body>
</f:view>
</html>